import { createApp } from 'vue'
import App from './App.vue'
import { createPinia } from 'pinia';
import ElementPlus from 'element-plus'
import 'element-plus/theme-chalk/index.css'
import locale from 'element-plus/es/locale/lang/zh-cn'

import router from './router/index.ts'
import request from '@/request/index.js'

const app = createApp(App)
const pinia = createPinia(); 
app.config.globalProperties.$request = request


app.use(router)
app.use(pinia); 
app.use(ElementPlus, { locale })
app.mount('#app')